package cn.wolfcode.luowowo.ticket.service.impl;

import cn.wolfcode.luowowo.ticket.domain.Scenic;
import cn.wolfcode.luowowo.ticket.mapper.ScenicMapper;
import cn.wolfcode.luowowo.ticket.service.IScenicService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

@Service
public class ScenicServiceImpl implements IScenicService {
    @Autowired
    private ScenicMapper scenicMapper;

    @Override
    public void deleteByPrimaryKey(Long id) {
        scenicMapper.deleteByPrimaryKey(id);
    }

    @Override
    public void insert(Scenic scenic) {
        scenicMapper.insert(scenic);
    }

    @Override
    public Scenic selectByPrimaryKey(Long id) {
        return scenicMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Scenic> selectAll() {
        return scenicMapper.selectAll();
    }

    @Override
    public void updateByPrimaryKey(Scenic scenic) {
        scenicMapper.updateByPrimaryKey(scenic);
    }

    @Override
    public List<Scenic> queryAjaxDestId(Long ajaxDestId) {
        return scenicMapper.queryAjaxDestId(ajaxDestId);
    }
}
